package com.isdepci.project.carbon.service.impl;

import com.isdepci.project.carbon.domain.BGreenCarbonSinkParameter;
import com.isdepci.project.carbon.mapper.BGreenCarbonSinkParameterMapper;
import com.isdepci.project.carbon.service.IBGreenCarbonSinkParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 绿化碳汇对应二氧化碳吸收因子参数Service业务层处理
 *
 * @author isdepci
 * @date 2025-03-29
 */
@Service
public class BGreenCarbonSinkParameterServiceImpl implements IBGreenCarbonSinkParameterService
{
    @Autowired
    private BGreenCarbonSinkParameterMapper bGreenCarbonSinkParameterMapper;

    /**
     * 查询绿化碳汇对应二氧化碳吸收因子参数
     */
    @Override
    public BGreenCarbonSinkParameter selectBGreenCarbonSinkParameterById(Long id)
    {
        return bGreenCarbonSinkParameterMapper.selectBGreenCarbonSinkParameterById(id);
    }

    /**
     * 查询绿化碳汇对应二氧化碳吸收因子参数列表
     */
    @Override
    public List<BGreenCarbonSinkParameter> selectBGreenCarbonSinkParameterList(BGreenCarbonSinkParameter bGreenCarbonSinkParameter)
    {
        return bGreenCarbonSinkParameterMapper.selectBGreenCarbonSinkParameterList(bGreenCarbonSinkParameter);
    }

    /**
     * 新增绿化碳汇对应二氧化碳吸收因子参数
     */
    @Override
    public int insertBGreenCarbonSinkParameter(BGreenCarbonSinkParameter bGreenCarbonSinkParameter)
    {
        return bGreenCarbonSinkParameterMapper.insertBGreenCarbonSinkParameter(bGreenCarbonSinkParameter);
    }

    /**
     * 修改绿化碳汇对应二氧化碳吸收因子参数
     */
    @Override
    public int updateBGreenCarbonSinkParameter(BGreenCarbonSinkParameter bGreenCarbonSinkParameter)
    {
        return bGreenCarbonSinkParameterMapper.updateBGreenCarbonSinkParameter(bGreenCarbonSinkParameter);
    }

    /**
     * 批量删除绿化碳汇对应二氧化碳吸收因子参数
     */
    @Override
    public int deleteBGreenCarbonSinkParameterByIds(Long[] ids)
    {
        return bGreenCarbonSinkParameterMapper.deleteBGreenCarbonSinkParameterByIds(ids);
    }

    /**
     * 删除绿化碳汇对应二氧化碳吸收因子参数信息
     */
    @Override
    public int deleteBGreenCarbonSinkParameterById(Long id)
    {
        return bGreenCarbonSinkParameterMapper.deleteBGreenCarbonSinkParameterById(id);
    }
}
